import Vue from 'vue'
Vue.filter('dateformate',function(value){
var d= new Date(value)
const year= d.getFullYear()
const month= (d.getMonth()+1+'').padStart(2,'0')
const day=(d.getDate()+'').padStart(2,'0')
const hour=(d.getHours()+'').padStart(2,'0')
const minutes=(d.getMinutes()+'').padStart(2,'0')
const seconds=(d.getSeconds()+'').padStart(2,'0')

return `${year}-${month}-${day} ${hour}:${minutes}:${seconds}`
})
